package com.ruoyi.system.domain;

import lombok.Builder;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 书架详情对象 bookshelf_details
 * 
 * @author 许雅萍
 * @date 2024-11-19
 */
@Builder
public class BookshelfDetails extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键 */
    private Long id;

    /** 用户编号 */
    @Excel(name = "用户编号")
    private Long userId;

    /** 小说编号 */
    @Excel(name = "小说编号")
    private Long novelId;

    /** 书架编号 */
    @Excel(name = "书架编号")
    private Long bookshelfId;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }

    public void setUserId(Long userId) 
    {
        this.userId = userId;
    }

    public Long getUserId() 
    {
        return userId;
    }

    public void setNovelId(Long novelId) 
    {
        this.novelId = novelId;
    }

    public Long getNovelId() 
    {
        return novelId;
    }

    public void setBookshelfId(Long bookshelfId) 
    {
        this.bookshelfId = bookshelfId;
    }

    public Long getBookshelfId() 
    {
        return bookshelfId;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("userId", getUserId())
            .append("novelId", getNovelId())
            .append("bookshelfId", getBookshelfId())
            .append("createTime", getCreateTime())
            .append("updateTime", getUpdateTime())
            .toString();
    }
}
